package com.yuba.front.domain.vo;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuba.common.translation.annotation.Translation;
import com.yuba.common.translation.constant.TransConstant;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
public class CommentVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;


    /**
     * 对象存储主键
     */
    private Long commentId;

    /**
     * 帖子id
     */
    private Long targetId;

    /**
     * 评论用户id
     */
    private Long userId;

    private String username;

    @Translation(type = TransConstant.OSS_ID_TO_URL)
    private Long avatar;

    /**
     * 父级评论id
     */
    private Long parentId;

    /**
     * 评论目标用户id;
     */
    private Long replyUserId;

    private String replyUsername;

    /**
     * 内容
     */
    private String content;

    /**
     * 是否置顶
     */
    private String topFlag;

    /**
     * 点赞数
     */
    private Long likeCount;

    /**
     * 创建时间
     */
    private Date createTime;

    private Boolean likeFlag;

    private Page<CommentVo> children;

}
